From 9a6ad742e65e08f7b772683581288847c6a69885 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 22 Feb 2010 18:46:09 +0000 Subject: [PATCH] Disable memory mapping warnings when stub domain is used. Signed-off-by: Daniel Kiper --- xen/arch/x86/mm/shadow/common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/mm/shadow/common.c b/xen/arch/x86/mm/shadow/common.c index 5e37bb01d4..adb7396d86 100644 --- a/xen/arch/x86/mm/shadow/common.c +++ b/xen/arch/x86/mm/shadow/common.c @@ -2607,9 +2607,11 @@ int sh_remove_all_mappings(struct vcpu *v, mfn_t gmfn) { /* Don't complain if we're in HVM and there are some extra mappings: * The qemu helper process has an untyped mapping of this dom's RAM - * and the HVM restore program takes another. */ + * and the HVM restore program takes another. Additionally, if stub + * domain is active then it also has an untyped mapping of original + * domain's RAM. */ if ( !(shadow_mode_external(v->domain) - && (page->count_info & PGC_count_mask) <= 3 + && (page->count_info & PGC_count_mask) <= 4 && (page->u.inuse.type_info & PGT_count_mask) == 0) ) { SHADOW_ERROR("can't find all mappings of mfn %lx: " -- 2.30.2